package com.zjitc.pigspring.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjitc.pigspring.bean.po.Order;
import com.zjitc.pigspring.bean.po.OrderVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderService extends IService<Order> {
    List<OrderVO> getByUser(Integer id);

    boolean deleteByAddressId(Integer id);

    List<OrderVO> getAll();

    List<OrderVO> getAllByGoodName(OrderVO orderVO);

    boolean deleteByGoodId(Integer id);

    boolean deleteByUserId(Integer id);

    List<OrderVO> getBySeller(Integer id);

    List<OrderVO> queryBySeller(OrderVO orderVO);
}
